package com.hna.face.security;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.handler.MappedInterceptor;

import java.util.List;

@Configuration
public class SecurityConfiguration extends WebMvcConfigurerAdapter {
//	private static final String[] SECURED = new String[] { Constants.API_PREFIX + "/**" };
//	private static final String[] UNSECURED = new String[] { Constants.PLUGIN_BIM + "/**",
//			Constants.PLUGIN_APP + "/**", Constants.FLIGHTS_URI + "/**", Constants.BUSINESSTRIP_URI + "/**",
//			Constants.TRAVEL_DOC+ "/**" ,Constants.OAWS_DOC+ "/**",Constants.NEW_BOT+ "/**" };
//
//	@Autowired
//	private SecurityInterceptor interceptor;
//
//	@Override
//	public void addInterceptors(InterceptorRegistry registry) {
//		registry.addInterceptor(new MappedInterceptor(SECURED, UNSECURED, interceptor));
//	}
//
//	@Override
//	public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
//		argumentResolvers.add(new SecurityArgumentResolver());
//	}

}
